Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Conversation

@reisfernanda
Copy link

This PR fixes the issue #78.

TestStorageModule from androidTest shows an unresolved reference error for FakeStorage on the TestStorageModule class, even though the instrumented tests run successfully.

Screenshot 2023-11-03 at 11 22 21 AM

FakeStorage is located at the sharedTest package, and this package is shared with tests through sourceSets, but it looks like sharing code this way is not supported anymore, according to this comment on Google Issue Tracker..

This PR creates a new module called shared-test with the FakeStorage class and adds it as a dependency for unit and instrumented tests on the app module. With this change, the Fake Storage on the TestStorageModule class is referenced correctly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant